package bjfuwjx.exp4;

import static bjfuwjx.exp4.RedFlag.*;

public class CountingCountThread extends Thread{
    public boolean IsStop=true;
    public CountingCountThread() {
        setDaemon(true);
    }
    @Override
    public void run() {
        while (true) {
            if (!IsStop) {
                int num=CountNum;
                int sum=CountSum;
                init_count_text.setText(format(num,sum));
            }
        }
    }
    public String format(int num,int sum) {
        return String.format("%d/%d", num, sum);
    }
}
